/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.insurance.cis.scos;

import java.util.Date;

/**
 *
 * @author TruongLQ
 */
public class EmployeeSearchCondition {
    String empID, empName, username, gender;
    Date birthday;
    Integer groupID;

    public EmployeeSearchCondition(String empID, String empName, String username, 
            String gender, Date birthday, Integer groupID) {
        this.empID = empID;
        this.empName = empName;
        this.username = username;
        this.gender = gender;
        this.birthday = birthday;
        this.groupID = groupID;
    }

    public String getEmpID() {
        return empID;
    }

    public String getEmpName() {
        return empName;
    }

    public String getUsername() {
        return username;
    }

    public String getGender() {
        return gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public Integer getGroupID() {
        return groupID;
    }
    
    public boolean isEmptyCondition() {
        return (empID==null ||empID.isEmpty())
                && (empName==null ||empName.isEmpty()) 
                &&(username==null ||username.isEmpty()) 
                && (gender==null || gender.isEmpty())
                && birthday==null
                && groupID == null;
    }
}
